package com.easy.dev.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.easy.dev.entity.TableConfig;
import com.easy.dev.service.impl.BaseServiceImpl;
import com.easy.dev.service.impl.TableConfigServiceImpl;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

@Api(tags = "TableConfig操作接口")
@RestController
@RequestMapping("/tableConfig")
public class TableConfigController extends BaseController<TableConfig> {

    @Autowired
    private TableConfigServiceImpl tableConfigService;

    @Override
    BaseServiceImpl getService() {
        return null;
    }

    @GetMapping("/{tableName}")
    public TableConfig getConfigByName(@PathVariable String tableName) {
        return tableConfigService.getConfigByName(tableName);
    }
}